package com.zy.chat.entity;

import lombok.*;
import org.jetbrains.annotations.NotNull;

@Data
@Getter
@Setter
public class Recommend implements Comparable<Recommend>{
    private UserInfo user;

    private double RecommendationScore;



    @Override
    public int compareTo(@NotNull Recommend recommend) {
        return Double.compare(recommend.RecommendationScore,this.RecommendationScore);
    }
}
